<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>品优购 - 优质！优质！</title>
    <link rel="stylesheet" href="./css/linwai_common.css">
    <link rel="stylesheet" href="./css/page-cart.css">
    <link rel="stylesheet" href="./css/base.css">
    <link rel="stylesheet" href="./css/index.css">
    <link rel="stylesheet" href="./css/xzoom.css">
    <script src="./js/jquery-3.7.1.js"></script>
    <script src="./js/jquery.cookie.js"></script>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>

<body>
    <!-- 快捷导航模块 -->
    <div class="shortcut">
        <div class="w">
            <div class="left">
                <ul>
                    <li>品优购欢迎您!&nbsp;</li>
                    <li>
                        <a href="login.html">请登录</a>&nbsp;<a href="register.html" class="style_red">免费注册</a>
                    </li>
                </ul>
            </div>
            <div class="right">
                <ul>
                    <li>我的订单</li>
                    <li></li>
                    <li class="arrow-icon">我的品优购</li>
                    <li></li>
                    <li>品优购会员</li>
                    <li></li>
                    <li>企业采购</li>
                    <li></li>
                    <li class="arrow-icon">关注品优购
                        <div><img src="./upload/wxm.png" alt=""></div>
                    </li>
                    <li></li>
                    <li class="arrow-icon">客户服务</li>
                    <li></li>
                    <li class="arrow-icon">网站导航</li>
                </ul>
            </div>
        </div>
    </div>
    <!-- header 头部 -->
    <div class="header w">
        <!-- logo 模块-->
        <div class="logo logo1">
            <h1>
                <a href="index.html" title="品优购商城">品优购商城</a>
            </h1>
        </div>
        <!-- 列表页的秒杀模块 -->
        <div class="sk">
            <img src="images/秒杀.png" alt="">
        </div>
        <!-- 搜索框 模块-->
        <div class="search">
            <input type="search" name="" id="" placeholder="语言开发">
            <button>搜索</button>

            <!-- 下拉效果 -->
            <div class="popup">
                <div class="flex_container">
                    <a href="list.html" class="pop_item margin">
                        <img src="./upload/phone1.png" alt="">
                        <span>HUAWEI P系列</span>
                    </a>
                    <a href="#" class="pop_item margin">
                        <img src="./upload/phone2.png" alt="">
                        <span>HUAWEI Mate系列</span>
                    </a>
                    <a href="#" class="pop_item margin">
                        <img src="./upload/phone3.png" alt="">
                        <span>HUAWEI Nova系列</span>
                    </a>
                    <a href="#" class="pop_item hight">秋冬女装</a>
                    <a href="#" class="pop_item hight">秋冬大码女装</a>
                    <a href="#" class="pop_item hight">秋冬女鞋</a>
                    <a href="#" class="pop_item hight">秋冬围脖</a>
                    <a href="#" class="pop_item hight">秋冬礼物</a>
                    <a href="#" class="pop_item hight">秋冬女朋友</a>
                </div>
            </div>
        </div>
        <!-- hotwords 模块 -->
        <div class="hotwords">
            <a href="#" class="style_red">优惠购首发</a>
            <a href="#">亿元优惠</a>
            <a href="#">9.9元团购</a>
            <a href="#">每满99减30</a>
            <a href="#">办公用品</a>
            <a href="#">电脑</a>
            <a href="#">通讯</a>
        </div>
        <!-- 购物车 模块 -->
        <div class="shopcar">
            <a href="cart.html">购物车</a>
            <i class="count">0</i>
        </div>
    </div>
    <!-- nav 模块制作 -->
    <nav class="nav">
        <div class="w">
            <div class="sk_list">
                <ul>
                    <li><a href="#">品优秒杀</a></li>
                    <li><a href="#">即将售罄</a></li>
                    <li><a href="#">超值低价</a></li>
                </ul>
            </div>
            <div class="sk_con">
                <ul>
                    <li><a href="#">女装</a></li>
                    <li><a href="#">女鞋</a></li>
                    <li><a href="#">男装</a></li>
                    <li><a href="#">男鞋</a></li>
                    <li><a href="#">母婴童装</a></li>
                    <li><a href="#">食品</a></li>
                    <li><a href="#" class="style_red">智能数码</a></li>
                    <li><a href="#">户外运动</a></li>
                    <li><a href="#">更多分类</a></li>
                </ul>
            </div>
        </div>
    </nav>




    <!-- 中间部分 -->
    <div class="py-container">
        <div class="allgoods">
            <h4>全部商品</h4>

            <div class="cart-main">
                <div class="cart-th clearfix">
                    <div>
                        <input class="titileCheck" type="checkbox">全选
                    </div>
                    <div class="">商品</div>
                    <div class="">单价（元）</div>
                    <div class="">数量</div>
                    <div class="">小计（元）</div>
                    <div class="">操作</div>
                </div>
                <div class="cart-title clearfix">
                    <h5 class="fl">传智自营</h5>
                    <div class="yunfei fr">
                        运费：￥6.00
                        <span>还差￥99.00免运费</span>
                    </div>
                </div>
                <div class="cart-item-list">
                    <div class="cart-body">
                        <div class="cart-list">
                            <ul class="goods-list yui3-g">
                                <li class="yui3-u-3-8 pr">
                                    <input type="checkbox" class="good-checkbox">
                                    <div class="good-item">
                                        <div class="item-img">
                                            <img src="upload/mobile.png">
                                        </div>
                                        <div class="item-msg">Apple Macbook Air 13.3英寸笔记本电脑 银色（Corei5）处理器/8GB内存</div>
                                    </div>
                                </li>
                                <li class="yui3-u-1-8">
                                    <span>颜色: 银色</span>
                                    <br>
                                    <span>处理器: Core I5</span>
                                    <br>
                                    <span>内存: 8GB</span>
                                    <br>
                                    <span>尺寸: 13.3英寸</span>
                                    <br>
                                </li>
                                <li class="yui3-u-1-8">
                                    <span class="price">8848.00</span>
                                </li>
                                <li class="yui3-u-1-8">
                                    <div class="clearfix">
                                        <a href="javascript:;" class="increment mins">-</a>
                                        <input autocomplete="off" type="text" value="1" minnum="1" class="itxt">
                                        <a href="javascript:;" class="increment plus">+</a>
                                    </div>
                                    <div class="youhuo">有货</div>
                                </li>
                                <li class="yui3-u-1-8">
                                    <span class="sum">8848.00</span>
                                </li>
                                <li class="yui3-u-1-8">
                                    <div>
                                        <a href="#none">删除</a>
                                    </div>
                                    <div>移到我的关注</div>
                                </li>
                            </ul>
                            <ul class="goods-list yui3-g">
                                <li class="yui3-u-3-8 pr">
                                    <input type="checkbox" class="good-checkbox">
                                    <div class="good-item">
                                        <div class="item-img">
                                            <img src="upload/mobile.png">
                                        </div>
                                        <div class="item-msg">Apple Macbook Air 13.3英寸笔记本电脑 银色（Corei5）处理器/8GB内存</div>
                                    </div>
                                </li>
                                <li class="yui3-u-1-8">
                                    <span>颜色: 银色</span>
                                    <br>
                                    <span>处理器: Core I5</span>
                                    <br>
                                    <span>内存: 8GB</span>
                                    <br>
                                    <span>尺寸: 13.3英寸</span>
                                    <br>
                                </li>
                                <li class="yui3-u-1-8">
                                    <span class="price">8848.00</span>
                                </li>
                                <li class="yui3-u-1-8">
                                    <div class="clearfix">
                                        <a href="javascript:;" class="increment mins">-</a>
                                        <input autocomplete="off" type="text" value="1" minnum="1" class="itxt">
                                        <a href="javascript:;" class="increment plus">+</a>
                                    </div>
                                    <div class="youhuo">有货</div>
                                </li>
                                <li class="yui3-u-1-8">
                                    <span class="sum">8848.00</span>
                                </li>
                                <li class="yui3-u-1-8">
                                    <div>
                                        <a href="#none">删除</a>
                                    </div>
                                    <div>移到我的关注</div>
                                </li>
                            </ul>
                            <ul class="goods-list yui3-g">
                                <li class="yui3-u-3-8 pr">
                                    <!-- <div class="" -->
                                    <input type="checkbox" class="good-checkbox">
                                    <!-- </div> -->
                                    <div class="good-item">
                                        <div class="item-img">
                                            <img src="upload/mobile.png">
                                        </div>
                                        <div class="item-msg">Apple Macbook Air 13.3英寸笔记本电脑 银色（Corei5）处理器/8GB内存</div>
                                    </div>
                                </li>
                                <li class="yui3-u-1-8">
                                    <span>颜色: 银色</span>
                                    <br>
                                    <span>处理器: Core I5</span>
                                    <br>
                                    <span>内存: 8GB</span>
                                    <br>
                                    <span>尺寸: 13.3英寸</span>
                                    <br>
                                </li>
                                <li class="yui3-u-1-8">
                                    <span class="price">8848.00</span>
                                </li>
                                <li class="yui3-u-1-8">
                                    <div class="clearfix">
                                        <a href="javascript:;" class="increment mins">-</a>
                                        <input autocomplete="off" type="text" value="1" minnum="1" class="itxt">
                                        <a href="javascript:;" class="increment plus">+</a>
                                    </div>
                                    <div class="youhuo">有货</div>
                                </li>
                                <li class="yui3-u-1-8">
                                    <span class="sum">8848.00</span>
                                </li>
                                <li class="yui3-u-1-8">
                                    <div>
                                        <a href="#none">删除</a>
                                    </div>
                                    <div>移到我的关注</div>
                                </li>
                            </ul>
                            <ul class="goods-list yui3-g">
                                <li class="yui3-u-3-8 pr">
                                    <input type="checkbox" class="good-checkbox">
                                    <div class="good-item">
                                        <div class="item-img">
                                            <img src="upload/mobile.png">
                                        </div>
                                        <div class="item-msg">Apple Macbook Air 13.3英寸笔记本电脑 银色（Corei5）处理器/8GB内存</div>
                                    </div>
                                </li>
                                <li class="yui3-u-1-8">
                                    <span>颜色: 银色</span>
                                    <br>
                                    <span>处理器: Core I5</span>
                                    <br>
                                    <span>内存: 8GB</span>
                                    <br>
                                    <span>尺寸: 13.3英寸</span>
                                    <br>
                                </li>
                                <li class="yui3-u-1-8">
                                    <span class="price">8848.00</span>
                                </li>
                                <li class="yui3-u-1-8">
                                    <div class="clearfix">
                                        <a href="javascript:;" class="increment mins">-</a>
                                        <input autocomplete="off" type="text" value="1" minnum="1" class="itxt">
                                        <a href="javascript:;" class="increment plus">+</a>
                                    </div>
                                    <div class="youhuo">有货</div>
                                </li>
                                <li class="yui3-u-1-8">
                                    <span class="sum">8848.00</span>
                                </li>
                                <li class="yui3-u-1-8">
                                    <div>
                                        <a href="#none">删除</a>
                                    </div>
                                    <div>移到我的关注</div>
                                </li>
                            </ul>
                            <ul class="goods-list yui3-g">
                                <li class="yui3-u-3-8 pr">
                                    <input type="checkbox" class="good-checkbox">
                                    <div class="good-item">
                                        <div class="item-img">
                                            <img src="upload/mobile.png">
                                        </div>
                                        <div class="item-msg">Apple Macbook Air 13.3英寸笔记本电脑 银色（Corei5）处理器/8GB内存</div>
                                    </div>
                                </li>
                                <li class="yui3-u-1-8">
                                    <span>颜色: 银色</span>
                                    <br>
                                    <span>处理器: Core I5</span>
                                    <br>
                                    <span>内存: 8GB</span>
                                    <br>
                                    <span>尺寸: 13.3英寸</span>
                                    <br>
                                </li>
                                <li class="yui3-u-1-8">
                                    <span class="price">8848.00</span>
                                </li>
                                <li class="yui3-u-1-8">
                                    <div class="clearfix">
                                        <a href="javascript:;" class="increment mins">-</a>
                                        <input autocomplete="off" type="text" value="1" minnum="1" class="itxt">
                                        <a href="javascript:;" class="increment plus">+</a>
                                    </div>
                                    <div class="youhuo">有货</div>
                                </li>
                                <li class="yui3-u-1-8">
                                    <span class="sum">8848.00</span>
                                </li>
                                <li class="yui3-u-1-8">
                                    <div>
                                        <a href="#none">删除</a>
                                    </div>
                                    <div>移到我的关注</div>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>






            <div class="cart-tool clearfix">
                <div class="cart-tool-left clearfix fl">
                    <ul>
                        <li>
                            <a href="javascript:;">全选</a>
                        </li>
                        <li>
                            <a href="javascript:;">删除选中的商品</a>
                        </li>
                        <li>
                            <a href="javascript:;">移到我的关注</a>
                        </li>
                        <li>
                            <a href="javascript:;">清除下柜商品</a>
                        </li>
                    </ul>
                </div>
                <div class="money-box">
                    <div class="sumprice">
                        <div class="sumprice-top">
                            <span>
                                已选择
                                <strong class="numberGoods">0</strong> 件商品</span>
                            <span>
                                <em>总价（不含运费）：</em>
                                <i class="summoney">￥0.00</i>
                            </span>
                        </div>
                        <div class="sumprice-bottom">
                            已节省：￥20.00
                        </div>
                    </div>
                    <div class="sumbtn">
                        <a class="sum-btn" href="javascript:;">结算</a>
                    </div>
                </div>
            </div>
            <!-- <div class="deleted">
                已删除的商品，您可以重新购买或加关注：
                <div class="del-product">
                    <ul class="clearfix">
                        <li>Apple Macbook Air 13.3英寸笔记本电脑 银色</li>
                        <li>8488.00</li>
                        <li>1</li>
                        <li class="re">重新购买</li>
                        <li>移到我的关注</li>
                    </ul>
                </div> -->
            <!-- <div class="del-product">
                    <ul class="clearfix">
                        <li>Apple Macbook Air 13.3英寸笔记本电脑 银色</li>
                        <li>8488.00</li>
                        <li>1</li>
                        <li class="re">重新购买</li>
                        <li>移到我的关注</li>
                    </ul>
                </div>
                <div class="del-product">
                    <ul class="clearfix">
                        <li>Apple Macbook Air 13.3英寸笔记本电脑 银色</li>
                        <li>8488.00</li>
                        <li>1</li>
                        <li class="re">重新购买</li>
                        <li>移到我的关注</li>
                    </ul>
                </div>
                <div class="del-product">
                    <ul class="clearfix">
                        <li>Apple Macbook Air 13.3英寸笔记本电脑 银色</li>
                        <li>8488.00</li>
                        <li>1</li>
                        <li class="re">重新购买</li>
                        <li>移到我的关注</li>
                    </ul>
                </div>
                <div class="del-product">
                    <ul class="clearfix">
                        <li>Apple Macbook Air 13.3英寸笔记本电脑 银色</li>
                        <li>8488.00</li>
                        <li>1</li>
                        <li class="re">重新购买</li>
                        <li>移到我的关注</li>
                    </ul>
                </div> -->
            <!-- </div> -->
            <div class="youLike">
                <div class="yk-title">
                    <span>猜你喜欢</span>特惠换购
                </div>
                <div class="yk-product">
                    <ul class="clearfix">
                        <li>
                            <div class="yk-product-top">
                                <img src="./upload/fs7805.gif" alt="">
                            </div>
                            <div class="yk-product-middle">
                                飞科（FLYCO）FS7805鼻毛修剪器
                                <br>电动鼻毛器 修鼻毛孔
                                <p>￥25.00</p>
                            </div>
                            <div class="yk-product-bottom">
                                <img src="./upload/car.gif" alt=""> 加入购物车
                            </div>
                        </li>
                        <li>
                            <div class="yk-product-top">
                                <img src="./upload/fs7805.gif" alt="">
                            </div>
                            <div class="yk-product-middle">
                                飞科（FLYCO）FS7805鼻毛修剪器
                                <br>电动鼻毛器 修鼻毛孔
                                <p>￥25.00</p>
                            </div>
                            <div class="yk-product-bottom">
                                <img src="./upload/car.gif" alt=""> 加入购物车
                            </div>
                        </li>
                        <li>
                            <div class="yk-product-top">
                                <img src="./upload/fs7805.gif" alt="">
                            </div>
                            <div class="yk-product-middle">
                                飞科（FLYCO）FS7805鼻毛修剪器
                                <br>电动鼻毛器 修鼻毛孔
                                <p>￥25.00</p>
                            </div>
                            <div class="yk-product-bottom">
                                <img src="./upload/car.gif" alt=""> 加入购物车
                            </div>
                        </li>
                        <li>
                            <div class="yk-product-top">
                                <img src="./upload/fs7805.gif" alt="">
                            </div>
                            <div class="yk-product-middle">
                                飞科（FLYCO）FS7805鼻毛修剪器
                                <br>电动鼻毛器 修鼻毛孔
                                <p>￥25.00</p>
                            </div>
                            <div class="yk-product-bottom">
                                <img src="./upload/car.gif" alt=""> 加入购物车
                            </div>
                        </li>

                    </ul>
                    <span><</span>
                    <span>></span>
                </div>
            </div>
        </div>
    </div>

    <!--页面底部-->
    <div class="clearfix footer">
        <div class="py-container">
            <div class="footlink">
                <div class="Mod-service">
                    <ul class="Mod-Service-list">
                        <li class="grid-service-item intro  intro1">
                            <i class="serivce-item fl"></i>
                            <div class="service-text">
                                <h4>正品保障</h4>
                                <p>正品保障，提供发票</p>
                            </div>
                        </li>
                        <li class="grid-service-item  intro intro2">
                            <i class="serivce-item fl"></i>
                            <div class="service-text">
                                <h4>正品保障</h4>
                                <p>正品保障，提供发票</p>
                            </div>
                        </li>
                        <li class="grid-service-item intro  intro3">
                            <i class="serivce-item fl"></i>
                            <div class="service-text">
                                <h4>正品保障</h4>
                                <p>正品保障，提供发票</p>
                            </div>
                        </li>
                        <li class="grid-service-item  intro intro4">
                            <i class="serivce-item fl"></i>
                            <div class="service-text">
                                <h4>正品保障</h4>
                                <p>正品保障，提供发票</p>
                            </div>
                        </li>
                        <li class="grid-service-item intro intro5">
                            <i class="serivce-item fl"></i>
                            <div class="service-text">
                                <h4>正品保障</h4>
                                <p>正品保障，提供发票</p>
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="clearfix Mod-list">
                    <div class="yui3-g">
                        <div class="yui3-u-1-6">
                            <h4>购物指南</h4>
                            <ul class="unstyled">
                                <li>购物流程</li>
                                <li>会员介绍</li>
                                <li>生活旅行/团购</li>
                                <li>常见问题</li>
                                <li>购物指南</li>
                            </ul>
                        </div>
                        <div class="yui3-u-1-6">
                            <h4>配送方式</h4>
                            <ul class="unstyled">
                                <li>上门自提</li>
                                <li>211限时达</li>
                                <li>配送服务查询</li>
                                <li>配送费收取标准</li>
                                <li>海外配送</li>
                            </ul>
                        </div>
                        <div class="yui3-u-1-6">
                            <h4>支付方式</h4>
                            <ul class="unstyled">
                                <li>货到付款</li>
                                <li>在线支付</li>
                                <li>分期付款</li>
                                <li>邮局汇款</li>
                                <li>公司转账</li>
                            </ul>
                        </div>
                        <div class="yui3-u-1-6">
                            <h4>售后服务</h4>
                            <ul class="unstyled">
                                <li>售后政策</li>
                                <li>价格保护</li>
                                <li>退款说明</li>
                                <li>返修/退换货</li>
                                <li>取消订单</li>
                            </ul>
                        </div>
                        <div class="yui3-u-1-6">
                            <h4>特色服务</h4>
                            <ul class="unstyled">
                                <li>夺宝岛</li>
                                <li>DIY装机</li>
                                <li>延保服务</li>
                                <li>品优购E卡</li>
                                <li>品优购通信</li>
                            </ul>
                        </div>
                        <div class="yui3-u-1-6">
                            <h4>帮助中心</h4>
                            <img src="./upload/wxm.png">
                        </div>
                    </div>
                </div>
                <div class="Mod-copyright">
                    <ul class="helpLink">
                        <li>关于我们

                        </li>
                        <li class="space">|</li>
                        <li>联系我们

                        </li>
                        <li class="space">|</li>
                        <li>关于我们

                        </li>
                        <li class="space">|</li>
                        <li>商家入驻

                        </li>
                        <li class="space">|</li>
                        <li>营销中心

                        </li>
                        <li class="space">|</li>
                        <li>友情链接

                        </li>
                        <li class="space">|</li>
                        <li>关于我们

                        </li>
                        <li class="space">|</li>
                        <li>营销中心

                        </li>
                        <li class="space">|</li>
                        <li>友情链接
                        </li>
                        <li class="space">|</li>
                        <li>关于我们</li>
                    </ul>
                    <p>地址：北京市昌平区建材城西路金燕龙办公楼一层 邮编：100096 电话：400-618-4000 传真：010-82935100</p>
                    <p>京ICP备08001421号京公网安备110108007702</p>
                </div>
            </div>
        </div>
    </div>
    <!--页面底部END-->






    <script>

        $(function () {
            // 登录状态
            // 获取cookie
            var nowCookie = $.cookie('username');
            if (nowCookie) {
                $('.shortcut .left li').eq(1).find('a').eq(0).text(nowCookie + '已登录!');
            }



            // 下拉菜单
            $('.search .popup a[href="list.html"]').mousedown(function () {
                window.location = 'list.html';
            })

            // 聚焦时
            $('.search input').focus(function () {
                $('.search .popup').slideDown();
            }).blur(function () {
                $('.search .popup').slideUp();
                // return false;
                // console.log('hhhh');
            })





            // 获取购物车数量
            // 购物车数量
            var count = $.cookie('gwc_num');
            if (count) {
                $('.shopcar .count').text(count);
            }
            else {
                $('.shopcar .count').text('0');
            }






            // 点击添加背景颜色
            $('.cart-main .cart-item-list .cart-list ul').click(function () {
                $(this).addClass('active').siblings().removeClass('active');
            })








            // 数量加减
            var $uls = $('.cart-main .cart-item-list .cart-list ul');
            var sum = parseInt($uls.find('li .sum').text());

            // 加
            $uls.find('li .clearfix .plus').click(function () {
                var count = parseInt($(this).siblings('.itxt').val());
                count++;
                // console.log(count);
                $(this).siblings('.itxt').val(count);

                // 总数改变
                $(this).parent().parent().parent().find('li .sum').text((sum * count).toFixed(2));

                getSum()
            })

            // 减
            $uls.find('li .clearfix .mins').click(function () {
                var count = parseInt($(this).siblings('.itxt').val());
                // console.log(count);

                if (count > 1) {
                    count--;
                }
                // console.log(count);
                $(this).siblings('.itxt').val(count);

                // 总数改变
                $(this).parent().parent().parent().find('li .sum').text((sum * count).toFixed(2));

                getSum()
            })










            // 计算购物车数量和价格
            function getSum() {

                // 选择商品的个数
                var numCount = 0
                $('.itxt').each(function () {
                    if ($(this).parent().parent().parent().find('.good-checkbox').prop('checked')) {
                        numCount += parseInt($(this).val())
                    }
                })
                // 将最终购买数量显示出来
                $('.sumprice-top .numberGoods').text(numCount)

                // 获取总钱数
                var money = 0
                $('.sum').each(function () {
                    if ($(this).parent().parent().find('.good-checkbox').prop('checked')) {
                        money += parseInt($(this).text())
                    }

                })

                // 将最终价钱显示出来
                $('.summoney').text('￥' + money.toFixed(2))
            }







            // 点击小的复选框
            $('.goods-list .good-checkbox').click(function () {
                // console.log(123);
                // 获取复选框选中的长度
                var allCheck = $('.goods-list .good-checkbox').length


                var checkLen = $('.goods-list .good-checkbox:checked').length
                if (checkLen == allCheck) {
                    $('.titileCheck').prop('checked', true)
                }
                else {
                    $('.titileCheck').prop('checked', false)
                }


                getSum()

            })

            // 点击全选
            $('.titileCheck').click(function () {

                // 获取当前按钮的状态
                var wheathCheck = $(this).prop('checked')

                $('.goods-list .good-checkbox').each(function () {
                    $(this).prop('checked', wheathCheck)
                })
                getSum()

            })







            // 删除、重新购买
            // 获取元素
            var $uls = $('.cart-main .cart-list ul');
            var $a = $uls.find('li:last a');
            var $dels = $('.deleted div');
            var $rePurchase = $dels.find('ul .re');

            // 删除
            $a.click(function () {
                var index = $a.index(this);
                $uls.eq(index).remove();
                // console.log(index);
                getSum()

                // 如果购物车中没有商品，全选为false状态
                // 获取购物车商品数量
                var len = $('.cart-list>ul').length;
                // 获取全选元素
                var $bigCheck = $('.cart-main .cart-th div input')
                if(len==0){
                    $bigCheck.prop('checked',false);
                }
            })

            // // 重新购买
            // $rePurchase.click(function () {
            //     var index = $rePurchase.index(this);
            //     $dels.eq(index).hide();
            //     // console.log(index);
            //     $uls.eq(index).show().addClass('yui3-g');
            //     $(this).parent().parent().parent().find('.itxt').addClass('itxt');
            //     $(this).parent().parent().parent().find('.sum').addClass('sum');
            //     getSum()
            // })





            // 结算
            $('.cart-tool .sumbtn').click(function(){
                alert('您需付的钱为：'+$('.summoney').text());
            })





        })













    </script>

</body>

</html>